#ifndef MYGRAPHICVIEW_H
#define MYGRAPHICVIEW_H

#include <QGraphicsView>
#include "../common.h"
#include "myqgraphicscene.h"
class MyGraphicView : public QGraphicsView
{
    Q_OBJECT
public:
    explicit MyGraphicView(QWidget *parent = nullptr);
    void  addNode(eSelectShape, QPoint);
    void  setPos(QPoint point);
protected:
    void mouseMoveEvent(QMouseEvent *event) override;
public slots:
    void slotChangeCur(bool);
signals:
private:
    MyQGraphicScene*  m_graphicscene;
};

#endif // MYGRAPHICVIEW_H
